const { defineConfig } = require('@vue/cli-service')

// vue.config.js
module.exports = {
  devServer: {
    port: 8081,
    host: '0.0.0.0',
    open: {
      target: 'http://192.168.69.26:8081',
      app: {
        name: 'chrome'
      }
    },
    proxy: {
      '/api': {
        target: 'http://192.168.69.26:6082',
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  },
  configureWebpack: {
    module: {
      rules: [
        {
          test: /\.m?js$/,
          resolve: {
            fullySpecified: false
          }
        }
      ]
    }
  }
}